package cn.dogger.easyboot.init.initEntity;

import cn.dogger.easyboot.init.annotation.InitField;
import cn.dogger.easyboot.init.annotation.InitTable;
import cn.dogger.easyboot.init.enums.FieldTypeEnums;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户信息表
 *
 * @author dogger
 * 2022-07-27
 */
@Data
@InitTable(name = "sys_user",remark = "用户信息表")
public class SysUser {

    @InitField(remark = "用户ID",name = "user_id",type = FieldTypeEnums.int_,keyFlag = true)
    private Long userId;

    @InitField(remark = "用户账号",name = "user_name",fieldLength = 50)
    private String userName;

    @InitField(remark = "用户昵称",name = "nick_name",fieldLength = 50)
    private String nickName;

    @InitField(remark = "用户类型（00系统用户）",name = "user_type",fieldLength = 50)
    private String userType;

    @InitField(remark = "用户邮箱",name = "email",fieldLength = 50)
    private String email;

    @InitField(remark = "手机号码",name = "phonenumber",fieldLength = 50)
    private String phonenumber;

    @InitField(remark = "用户性别（0男 1女 2未知）",name = "sex",fieldLength = 50)
    private String sex;

    @InitField(remark = "头像地址",name = "avatar",fieldLength = 50)
    private String avatar;

    @InitField(remark = "密码",name = "password",fieldLength = 50)
    private String password;

    @InitField(remark = "帐号状态（1正常 0停用）",name = "status",fieldLength = 50)
    private String status;

    @InitField(remark = "创建者",name = "create_by",fieldLength = 50)
    private String createBy;

    @InitField(remark = "创建时间",name = "create_time",type = FieldTypeEnums.datetime_)
    private LocalDateTime createTime;

    @InitField(remark = "更新者",name = "update_by",fieldLength = 50)
    private String updateBy;

    @InitField(remark = "更新时间",name = "update_time",type = FieldTypeEnums.datetime_)
    private LocalDateTime updateTime;

    @InitField(remark = "备注",name = "remark",fieldLength = 50)
    private String remark;

}